package com.yuan.java.beanCycle;

/**
 * Created by 袁恩光 on 2017/12/1.
 */
public class B {

    private A a;

    public B() {
        a = new A(this);
    }

    public B(A a) {
       this.a = a;
    }

    public void test(){
        System.out.println("bbbbbbbb");
    }

    public A getA() {
        return a;
    }

    public void setA(A a) {
        this.a = a;
    }
}
